import request from './request';
function getTopMovie(data, url) {
  return request({
    url: url || '/api/douban/movie/top250',  // top250
    method: 'get',
    data
  })
}
function hotMovie(data, url) {
  return request({
    url: url || '/api/douban/movie/in_theaters',  // 正在热映
    method: 'get',
    data
  })
}

function getMovie1(data,url) {
  return request({
    url: url || '/api/douban/movie/coming_soon',  // 即将上映
    method: 'get',
    data
  })
}

export { getTopMovie, getMovie1, hotMovie }